<template >
  
       <slot  v-if="state.isShow"></slot>
  
</template>
<script setup lang="ts" name="operAuthTag">
import { useSysApi } from "/@/api/sys/index";
import { onMounted, reactive, defineProps } from 'vue';
const props = defineProps({ serviceName: String, path: String, operCode: String })
let state = reactive({ isShow: true });

const refresh = () => {
  useSysApi().checkCurrentUserOperator(props.serviceName, props.path, props.operCode).then((data: any) => {
    state.isShow = data;
  });
};



onMounted(() => {
  refresh()
});

</script>
